package com.entity.journal;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 
 * @author Chenql
 * date 2012-05-23
 * 个人模块--日志分类实体
 */

@Entity
@Table(name = "t_journal_category")
public class JournalCategory implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -3129435868068928418L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Integer id;
	
	private String categoryName;
	
	public JournalCategory()
	{
		super();
	}
	
	public JournalCategory(Integer id,String categoryName)
	{
		super();
		this.id = id;
		this.categoryName = categoryName;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getCategoryName() {
		return categoryName;
	}

	public void setCategoryName(String categoryName) {
		this.categoryName = categoryName;
	}
}
